home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global BugColors, BugColorKey, lastclickon, pal, colpal, bucketcol, level1, masterlist, kingcolor, waittime
- set colornum to getAt(BugColorKey, lastclickon - 13)
- set palnum to getAt(pal, colornum)
- set correctcolor to getAt(colpal, palnum)
- set rightcan to getPos(bucketcol, palnum)
- set rightcolor to getAt(bucketcol, rightcan)
- set gjidebug to 0
- if level1 = 1 then
- set offset to 0
- set hinter to 1
- else
- set offset to 10
- set hinter to 2
- end if
- set mycolor to the foreColor of sprite lastclickon
- startTimer()
- set cansprite to rightcan + 37
- set animlist to getAt(masterlist, offset + rightcolor)
- repeat with xxx = 1 to 3
- set the foreColor of sprite lastclickon to 0
- updateStage()
- set the foreColor of sprite lastclickon to mycolor
- updateStage()
- if the timer > 100 then
- exit repeat
- end if
- end repeat
- set the foreColor of sprite lastclickon to 0
- set mycast to the castNum of sprite cansprite
- set myx to the locH of sprite cansprite
- set myy to the locV of sprite cansprite
- puppetSprite(cansprite, 1)
- set limit to count(animlist)
- startTimer()
- set timelimit to the timer + 90
- if level1 = 1 then
- repeat with xxxx = 38 to 41
- if not (cansprite = xxxx) then
- puppetSprite(xxxx + 4, 1)
- next repeat
- end if
- puppetSprite(xxxx + 4, 0)
- set the visible of sprite (xxxx + 4) to 1
- end repeat
- play frame "L" & hinter & ".Hint3." & rightcolor
- repeat with xxxx = 42 to 45
- puppetSprite(xxxx, 0)
- end repeat
- else
- play frame "L" & hinter & ".Hint3." & rightcolor
- end if
- if not gjidebug then
- setcolor(lastclickon, 0)
- end if
- set the castNum of sprite cansprite to mycast
- set the locH of sprite cansprite to myx
- set the locV of sprite cansprite to myy
- updateStage()
- set the foreColor of sprite lastclickon to correctcolor
- setAt(BugColors, lastclickon - 13, 1)
- play done
- end
-